
import 'package:flutter_demo/model/word_order_data.dart';

/// list : [{"id":0},{"id":0}]
/// feedbackCustomerLog : {"id":6}

class WorkOrderDetailsData {

  WorkOrderDetailsData({
      this.list, 
      this.feedbackCustomerLog,});

  WorkOrderDetailsData.fromJson(dynamic json) {
    if (json['list'] != null) {
      list = [];
      json['list'].forEach((v) {
        list?.add(WorkOrderModel.fromJson(v));
      });
    }
    feedbackCustomerLog = json['feedbackCustomerLog'] != null ? WorkOrderModel.fromJson(json['feedbackCustomerLog']) : null;
  }
  List<WorkOrderModel>? list;
  WorkOrderModel? feedbackCustomerLog;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (list != null) {
      map['list'] = list?.map((v) => v.toJson()).toList();
    }
    if (feedbackCustomerLog != null) {
      map['feedbackCustomerLog'] = feedbackCustomerLog?.toJson();
    }
    return map;
  }

}


